package com.cw.demo.bootstrap;

import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.transaction.annotation.EnableTransactionManagement;

import com.alibaba.nacos.spring.context.annotation.config.NacosPropertySource;

/**
 * 启动类
 */
@SpringBootApplication(scanBasePackages = {"com.cw"})
@EnableTransactionManagement
@NacosPropertySource(dataId = "hrkj-demo-center.properties", autoRefreshed = true)
@EnableDiscoveryClient
public class CenterBootstrap {
    public static void main(String[] args) {
        new SpringApplicationBuilder(CenterBootstrap.class).run(args);
    }
}
